package com.yys.gulimall.search.vo;
/*
 * @author zq
 */

import com.yys.common.to.es.SkuEsTo;
import lombok.Data;

import java.util.List;

@Data
public class SearchResult {
    private List<SkuEsTo> products;
    //分页信息
    private Integer pageNum;
    private Long total;
    private Integer totalPages;
    private List<Integer> pageNavs;

    /**
     * 所有品牌涉及的结果
     * */
    private List<BrandVo> brands;

    /**
     * 属性结果
     * */
    private List<AttrVo> attrs;

    private List<CatalogVo> catlogs;

    /**
     * 返回页面封装的vo
     * */

    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }

    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;
    }
}
